using System;
using System.ComponentModel.DataAnnotations;

namespace Domain
{
    /// <summary>
    /// 屠宰信息表，记录批次、到场均重、到场时间、屠宰时间等信息，继承审计字段。
    /// </summary>
    public class SlaughterInfo : AuditFields
    {
        /// <summary>
        /// 屠宰信息ID（主键，自增）
        /// </summary>
        [Key]
        public int SlaughterInfoId { get; set; }

        /// <summary>
        /// 批次
        /// </summary>
        public string BatchNumber { get; set; } = string.Empty;

        /// <summary>
        /// 到场均重（单位：千克）
        /// </summary>
        public decimal ArrivalAverageWeight { get; set; }

        /// <summary>
        /// 到场时间
        /// </summary>
        public DateTime ArrivalTime { get; set; }

        /// <summary>
        /// 屠宰时间
        /// </summary>
        public DateTime SlaughterTime { get; set; }

        /// <summary>
        /// 企业外键
        /// </summary>
        public int EnterpriseId { get; set; }
    }
} 